package wangjg.xuexiban.activity;

import wangjg.xuexiban.R;
import wangjg.xuexiban.activity.category.CategoryGridActivity;
import wangjg.xuexiban.activity.category.CategoryLinearActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class XueXiBanActivity extends BasicActivity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		
		Button btn1 = (Button) this.findViewById(R.id.button1);
		OnClickListener btn1_L = new OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent(XueXiBanActivity.this, CategoryLinearActivity.class);
				startActivity(intent);
			}};
		btn1.setOnClickListener(btn1_L);
		
		Button btn2 = (Button) this.findViewById(R.id.button2);
		OnClickListener btn2_L = new OnClickListener(){
			public void onClick(View v) {
				Intent intent = new Intent(XueXiBanActivity.this, CategoryGridActivity.class);
				startActivity(intent);
			}};
		btn2.setOnClickListener(btn2_L);
	}

}
